package com.taxi.gateway.exception;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;

/**
 * @Author: Ruomeng
 * @Date: 2024/12/13
 * @Description : online-taxi
 * @Version: 1.0
 */
@Configuration
public class GatewayExceptionConfig {

    @Bean
    @Order(Ordered.HIGHEST_PRECEDENCE)
    public OnlineTaxiExceptionHandler myExceptionHandler(){
        return new OnlineTaxiExceptionHandler();
    }

}
